package com.liuxia8.fresco;


import android.app.Activity;
import android.net.Uri;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.widget.ImageView;

import com.facebook.drawee.backends.pipeline.Fresco;
import com.facebook.drawee.view.SimpleDraweeView;

/**
 * Created by Administrator on 2017/3/4.
 */

public class DetailActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {

        Fresco.initialize(this);
        super.onCreate(savedInstanceState);
        setContentView(R.layout.detail);
        SimpleDraweeView img=(SimpleDraweeView)findViewById(R.id.img);
        Uri uri = Uri.parse("http://xxx7093c2a309d2e_v2_.jpg");
        img.setImageURI(uri);
    }
}
